/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ta.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.ta.entity.StAttachment;
import com.thinkgem.jeesite.modules.ta.dao.StAttachmentDao;

/**
 * 附件Service
 * 
 * @author TTAO
 * @version 2017-06-05
 */
@Service
@Transactional(readOnly = true)
public class StAttachmentService extends
		CrudService<StAttachmentDao, StAttachment> {

	public StAttachment get(String id) {
		return super.get(id);
	}

	public List<StAttachment> findList(StAttachment stAttachment) {
		return super.findList(stAttachment);
	}

	public Page<StAttachment> findPage(Page<StAttachment> page,
			StAttachment stAttachment) {
		return super.findPage(page, stAttachment);
	}

	@Transactional(readOnly = false)
	public void save(StAttachment stAttachment) {
		super.save(stAttachment);
	}

	@Transactional(readOnly = false)
	public void delete(StAttachment stAttachment) {
		super.delete(stAttachment);
	}

	@Transactional(readOnly = false)
	public void StAttachmentDelOne(String aid) {
		super.StAttachmentDelOne(aid);
	}
	@Transactional(readOnly = false)
	public void StAttachmentDelAll(Long iid){
		super.StAttachmentDelAll(iid);
	}

}